<template>
    <div class="goodsdesc-container">
        <h3>{{ info.title }}</h3>

        <div class="content" v-html="info.content"></div>
    </div>

</template>

<script type="text/javascript">

    import { Toast } from 'mint-ui';

     export default{
        data() {
            return {
                info: {}
            }
        },
        created() {
            this.getInfo()
        },
        methods: {
            getInfo() {
                this.$http.get('getDescInfo/0.php').then( res => {
                    if ( res.body.status === 0 ){
                        this.info = res.body.Message;
                    } else {
                        Toast("获取信息失败")
                    }
                })
            }
        } 
    }
</script>
<style lang="scss">
    .goodsdesc-container{
        h3 {
            font-size: 16px;
            color: #226aff;
            margin: 15px 0;
            text-align: center;
        }
        .content {
            img {
                width: 100%;
            }
        }
    }
</style>